package cn.icyzx.service;

import cn.icyzx.dao.DaoFindPsw;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by zk on 2016/10/5.
 */
@Service
public class FindPswService {

    @Autowired
    DaoFindPsw daoFindPsw;

    public boolean checkfindPsw(String uid, String findPsw) {
        return daoFindPsw.checkfindPsw(uid, findPsw);
    }

    public boolean sendFindPsw(String email) {
        return daoFindPsw.sendMailToFindPsw(email);
    }

    public boolean modifyPsw(String password, String uid) {
        return daoFindPsw.modifyPsw(password, uid);
    }
}
